package com.xinzhi.ware.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xinzhi.common.annotation.Excel;
import com.xinzhi.common.core.domain.BaseEntity;

/**
 * 货物表对象 tb_goods
 * 
 * @author ruoyi
 * @date 2023-12-25
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String name;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private String inventory;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setInventory(String inventory) 
    {
        this.inventory = inventory;
    }

    public String getInventory() 
    {
        return inventory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("inventory", getInventory())
            .toString();
    }
}
